{template 'admin','header'}
<style type="text/css">
    #categories ul{margin-left: 30px;}
</style>
<form action="{$self_url}?action={$action}&module={$module}" method="post" enctype="multipart/form-data" onsubmit="return r_submit(this);">
<input type="hidden" name="forward" value="{HTTP_REFERER}">

<table cellpadding="2" cellspacing="1" class="table_form">
    <caption>发布内容 {$cat['catname']}</caption>
    {if $module_name=='category'}
    <input type="hidden" name="catid" value="{$catid}">
    {else}
    <input type="hidden" name="catid" value="{$catid}">
    {/if}
    {if check_perms('post_to_other_cate') && isset($relcat)}
    <tr>
        <th width="200"><strong>发布到其他栏目</strong></th>
        <td>
            <div style="width: 100%;height: 100%;background-color: #E3F0F9;text-align: center;cursor: pointer;" onclick="$('#categories').slideToggle()">展开></div>
            <div id="categories" style="width: 100%;height: 200px;overflow: scroll;z-index: 0;display: none;">
                {$relcat}
            </div>
            
        </td>
    </tr>
    {/if}
    <tr>
        <th width="200"><strong>数据文件（csv）</strong> <br></th>
        <td><input type="file" name="data_file"/></td>
    </tr>
    <tr>
        <th width="200"><strong> 批次</strong> <br></th>
        <td><input type="text" name="pici"/></td>
    </tr>
    <tr>
        <th></th>
        <td>
            <input type="submit" name="submitform" value="保存" id="add"/>&nbsp;
            <input type="button" name="back" value="返回" id="back" onclick="window.location='{HTTP_REFERER}'"/>
        </td>
    </tr>
</table>
</form>
{template 'admin','footer'}
